/*
 ============================================================================
 Name        : Algorithms.c
 Author      : Juan Carlos
 Version     :
 Copyright   : Your copyright notice
 Description : Hello World in C, Ansi-style
 ============================================================================
 */

#include <stdio.h>
#include <stdlib.h>
#include "ordenacion.h"

int main(void) {
	int i;
	array_t temp;

	printf("hola \n");

	temp.tam = 10;
	temp.vector = (int *) malloc(10 * sizeof(int));

	for (i = 0; i < 10; i++) {
		temp.vector[i] = i;

	}

	printf("hola \n");


	ordBurbuja(temp);

	printf("hola \n");

	for (i = 0; i < 10; i++) {
		printf("%d \n", temp.vector[i]);

	}

	free(temp.vector);

	puts("!!!Hello World!!!"); /* prints !!!Hello World!!! */
	return EXIT_SUCCESS;
}
